<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main"/>
    <g:set var="entityName" value="${message(code: 'accountProject.label', default: 'AccountProject')}"/>
    <title>入围项目编辑</title>
</head>

<body>
<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li>PLS CINDATA</li>
                    <li class="active">
                        <span>入围项目</span>
                    </li>
                </ol>
            </div>

            <h2 class="font-light m-b-xs">

            </h2>
        </div>
    </div>
</div>

<g:if test="${flash.message}">
    <div class="message alert alert-info" role="status">${flash.message}</div>
</g:if>
<g:hasErrors bean="${this.accountProject}">
    <ul class="errors" role="alert">
        <g:eachError bean="${this.accountProject}" var="error">
            <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message
                    error="${error}"/></li>
        </g:eachError>
    </ul>
</g:hasErrors>

<div class="content animate-panel">
    <div class="row">
        <div class="hpanel hblue">
            <div class="panel-heading">
                入围项目编辑
            </div>

            <div class="panel-body form-horizontal">

                <g:form resource="${this.accountProject}" method="PUT" class="form-horizontal">
                    <div class="form-group">
                        <g:hiddenField name="targetUri" value="${params?.targetUri}"></g:hiddenField>
                    </div>

                    <div class="form-group">
                        <label class="col-md-5 control-label ">项目名称</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="name" id="name" value="${this.accountProject?.name}" placeholder="请输入项目名称"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-5 control-label ">城市</label>
                        <div class="col-md-3">
                            <g:select class="form-control" name="city" id="city" from="${com.cindata.City.list()}" optionKey="id" optionValue="name"
                                value="${this?.accountProject?.city?.id}" noSelection="${['': '请选择城市']}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-5 control-label ">项目地址</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="address" id="address" value="${this.accountProject?.address}" placeholder="请输入项目地址"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-5 control-label ">入围状态</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="entryStatus" id="entryStatus" value="${this.accountProject?.entryStatus}" placeholder="请输入入围状态"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-5 control-label ">建筑类别</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="buildingstructure" id="buildingstructure" value="${this.accountProject?.buildingstructure}" placeholder="请输入建筑结构"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-5 control-label ">预售证编号</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="preSalePermitNumber" id="preSalePermitNumber" value="${this.accountProject?.preSalePermitNumber}" placeholder="请输入预售证编号"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-5 control-label ">竣工验收日期</label>
                        <div class="col-md-3">
                            <g:datePicker class="form-control" name="completionDate" value="${new Date()}" precision="day"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-5 control-label ">交房日期</label>
                        <div class="col-md-3">
                            <g:datePicker class="form-control" name="deliveryDate" value="${new Date()}" precision="day"/>
                        </div>
                    </div>

                    %{--<div class="form-group">--}%
                        %{--<label class="col-md-5 control-label ">工作流</label>--}%
                        %{--<div class="col-md-3">--}%
                            %{--<g:select class="form-control" name="workflow" id="workflow"  optionKey="id" optionValue="name" from="${com.cindata.Workflow.list()}" value="${this.accountProject?.workflow?.id}" noSelection="${['': '请选择机构年检审批工作流']}"/>--}%
                        %{--</div>--}%
                    %{--</div>--}%
                    <div class="form-group">
                        <div class="col-md-2 col-md-offset-6">
                            <g:submitButton class="btn btn-info" name="update" value="保存"/>
                        </div>
                    </div>
                </g:form>
            </div>
        </div>
    </div>
</div>
</body>
</html>
